#ifndef __CALC_NEIGHBOR_H__
#define __CALC_NEIGHBOR_H__


#define TX 32
#define TY 32

typedef unsigned char uchar;
int calc_sobel_cuda(uchar * dev_imageBuffIn, unsigned int width, unsigned int height, uchar * devBuff, int pitch, float * host_dx, float * host_dy, float *host_norm);



int expand_border_dev(uchar * dev_imgIn, unsigned int widthSrc, unsigned int heightSrc, uchar * devBuff, uchar** devImgOut);

int calc_sobel_cuda_v1(uchar * dev_imageBuffIn, unsigned int width, unsigned int height, uchar * devBuff, short * host_dx, short * host_dy, int *host_norm);

int calc_sobel_cuda(uchar * dev_imageBuffIn, unsigned int width, unsigned int height, uchar * devBuff, int pitch, short * host_dx, short * host_dy, int *host_norm);
#endif
